package org.example.game.history;

/**
 * @Description: TODO
 * @Author wyatt
 * @Data 2024/06/02 10:31
 */
public class Solution100307 {

    public static void main(String[] args) {

    }

    public int minimumChairs(String s) {
        int max = 0;
        int cur = 0;
        for(Character c : s.toCharArray()){
            if(c.equals('E')){
                cur++;
                max = Math.max(max, cur);
            }else {
                cur--;
            }
        }
        return max;
    }

}
